package hgx.spring.cloud.lession.orderserver.vo;/**
 * Created by liujun on 2018/3/13.
 */

import java.io.Serializable;

/**
 * @author Administrator
 * @create 2018-03-13 18:46
 */
public class ReponseBaseVo implements Serializable {
    private static final long serialVersionUID = -6402533588545665187L;

    private int code =-1;
    private String msg ="处理失败";
    private boolean status;

    /**
     * 处理代码
     * @return  -1 ：失败，1000 ： 表示成功
     */
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    /**
     * 处理信息
     * @return
     */
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 处理状态
     * @return  true ：成功 ； false : 失败
     */
    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public void success(){
        this.status=true;
        this.code=1000;
        this.msg="处理成功";
    }
}
